<template>
    <div class="HomePage">
        <div class="PageTop">
            <SmartCampus />
        </div>
        <div class="PageBottom">
            <div class="PageLeft">
                <EnvironmentMonitor />
                <Distribution />
            </div>
            <div class="PageMiddle">
                <RotatingAnimation />
            </div>
            <div class="PageRight">
                <Hydropower />
                <PersonnelTurnover />
            </div>
        </div>
        <!-- <div class="PageBottom">
            <img src="../../assets/bottom.png" alt="">
        </div> -->
    </div>
</template>

<script setup>
import SmartCampus from '../../components/SmartCampus/SmartCampus.vue';
import EnvironmentMonitor from '../../components/EnvironmentMonitor/EnvironmentMonitor.vue';
import Distribution from '../../components/Distribution/Distribution.vue';
import Hydropower from '../../components/Hydropower/Hydropower.vue';
import PersonnelTurnover from '../../components/PersonnelTurnover/PersonnelTurnover.vue';
import RotatingAnimation from '../../components/RotatingAnimation/RotatingAnimation.vue';
</script>

<style lang="scss" scoped>
.HomePage {
    display: flex;
    /* 纵向排列 */
    flex-direction: column;
    /* 占满全屏 */
    height: 100%;
    background: rgba(3, 1, 42, 1);
    color: #fff;

    .PageTop {
        flex: 0 0 74px;
        z-index: 1;
    }

    .PageBottom {
        display: flex;
        flex: 1;
        overflow: hidden;

        .PageLeft {
            position: fixed;
            top: 0;
            left: 0;
            width: 484px;
            height: 100%;
            /* 可视化边栏的背景颜色 */
            // background: rgba(5, 1, 76, 1);
            // 背景图片
            background-image: url('../../assets/left.png');
            background-position: center center;
            background-repeat: no-repeat;
            background-size: 100% 100%;
        }

        .PageMiddle {
            position: fixed;
            top: 0;
            left: 479px;
            /* 主内容占据剩余空间 */
            background: rgba(5, 1, 76, 1);
            /* 主内容的背景颜色 */
        }

        .PageRight {
            position: fixed;
            top: 0;
            right: 0;
            width: 484px;
            height: 100%;
            // background: rgba(5, 1, 76, 1);
            // 背景图片
            background-image: url('../../assets/right.png');
            background-position: center center;
            background-repeat: no-repeat;
            background-size: 100% 100%;
        }
    }
}

// .PageBottom {
//     position: fixed;
//     bottom: 0;
//     left: 230px;
//     width: 1100px;
//     height: 70px;

//     img {
//         width: 100%;
//         height: 100%;
//         background-position: center center;
//         background-repeat: no-repeat;
//         background-size: 100% 100%;
//     }
// }</style>